<?php
/**
 * Fox Login Screen 
 * 
 * @package Hive\Core
 * @author Xavier VILAIN
 */
use Fox\Html\CheckBox;
use Fox\Html\Input;
use Fox\Html\Button;
use Fox\Html\Header\Image;
use Fox\Html\Screen;

$screen = new Screen('loginScreen','iconn');
$screen->add(new Image('logo','<p><br>'.Msg(Hive::BUNDLE,Hive::LOGIN_MAIN_TITLE).'</p>'));
$o_block = new Fox\Html\Block('BLG','Login');
$o_block->add(new Input(array('usrnm','email'),true,null,null))->size(20);
$o_block->add(new Fox\Html\Input\Password('passw',true,null));
$screen->add($o_block);
$screen->add(new CheckBox('remember',false,CheckBox::RMODE_LEFT))
					->label(Msg(\Fox\Msg::BUNDLE,\Fox\Msg::KEEP_ME_LOGGED));
$screen->buttonBarClass('text-align')
		->buttons('iconn')
		->color(Button::COLOR_WARNING);
if($screen->submitted())
{
	$screen->get();
}
echo '<center><div id="login">'.$screen->display().'</div></center>';